import request from '@/utils/requestMd5'



export function deleteLink(data) {  //删除链接
    return request({
        url: '/delete',
        method: 'post',
        data
    })
}


export function getSort(params) {  //获取保存的数据板块数据
    return request({
        url: '/getSort',
        method: 'get',
        params
    })
}


export function saveData(params) {  //保存数据板块
    return request({
        url: '/saveData',
        method: 'post',
        params
    })
}


export function getShareUrl(params) { //获取历史链接
    return request({
        url: '/getShareUrl',
        method: 'get',
        params
    })
}



export function generateUrl(data) { //生成链接
    return request({
        url: '/share',
        method: 'post',
        data
    })
}

export function getTotal(params) { //总交易额 
    return request({
        url: '/getTotal',
        method: 'get',
        params
    })
}

export function getCompanyLogLat(params) { //客户分布 
    return request({
        url: '/getCompanyLogLat',
        method: 'get',
        params
    })
}

export function getGuestRegionSpread(params) { //各地区合作客户分布
    return request({
        url: '/getGuestRegionSpread',
        method: 'get',
        params
    })
}

export function getLastYearTradeMoney (params) { //近一年交易概况
    return request({
        url: '/getLastYearTradeMoney',
        method: 'get',
        params
    })
}
export function getGuestTypeProportion (params) {  //合作客户类型占比
    return request({
        url: '/getGuestTypeProportion',
        method: 'get',
        params
    })
}
export function getGuestTradingVolume(params) { //合作客户交易额TOP10
    return request({
        url: '/getGuestTradingVolume',
        method: 'get',
        params
    })
}
export function getGuestOrders(params) { //合作客户订单量TOP10
    return request({
        url: '/getGuestOrders',
        method: 'get',
        params
    })
}
export function getGuestUserNumber(params) { //合作客户用户量TOP10
    return request({
        url: '/getGuestUserNumber',
        method: 'get',
        params
    })
}
export function getStandardCategorySalesSpread(params) { //标准分类销量分布
    return request({
        url: '/getStandardCategorySalesSpread',
        method: 'get',
        params
    })
}
export function getStandardGoodsSale(params) { //标准库商品销量TOP10
    return request({
        url: '/getStandardGoodsSale',
        method: 'get',
        params
    })
}

export function getStandardGoodsTrading(params) { //标准库商品交易额TOP10
    return request({
        url: '/getStandardGoodsTrading',
        method: 'get',
        params
    })
}
